package com.chhh.cranelease.service;

import com.chhh.cranelease.entity.Staff;
import com.chhh.cranelease.mapper.StaffDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffService {
    @Autowired
    private StaffDao dao;
    public List<Staff> selectAll(){
        return dao.selectAll();
    }
    public Integer updateStaff(Staff staff){
        return dao.updateStaff(staff);
    }
    public Integer bringCarStaff(Staff staff){
        return dao.bringCarStaff(staff);
    }

}
